{include file="include:header" /}
<body class="fixed-sidebar full-height-layout gray-bg" >
    <!-- 会员列表 -->
    <div class="row wrapper border-bottom white-bg page-heading lawyer-add">
        <div class="col-sm-4">
            <h2>{$title}</h2>
            <!-- 导航部分 -->
            <ol class="breadcrumb">
                <li><a href="{:url('admin/Index/home')}">主页</a></li>
                <li><a href="#">前台设置</a></li>
                <li><strong>{$title}</strong></li>
            </ol>
        </div>
        <div class="col-sm-8">
            <div class="title-action">
                <!-- 链接部分 -->
                <a href="{:url('admin/Sie/news_list')}" class="btn btn-primary">律师展示</a>
            </div> 
        </div>
    </div>
    <!-- 分类列表 -->
    <div class="wrapper wrapper-content ">       
        <!-- 分类列表 -->
        <div class="ibox float-e-margins">
          
                    <div class="ibox-content">
                        <form method="post" class="valid-form form-horizontal" >
                            <!-- 基础信息 -->
                            <div class="panel panel-default">
                                <div class="panel-heading">基础信息</div>
                                <div class="panel-body">
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">律师姓名</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="l_name"  placeholder="律师姓名" datatype="*" errormsg="请输入律师姓名" sucmsg=" " value="{$data['l_name']?$data['l_name']:''}" style="width: 140px;"/>
                                            <p class="text-danger">*必填</p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">所属事务所</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="l_office"  placeholder="所属事务所" datatype="*" errormsg="请输入所属事务所" sucmsg=" " value="{$data['l_office']?$data['l_office']:''}" style="width: 140px;"/>
                                            <p class="text-danger">*必填</p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">执业经验</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="l_age"  placeholder="执业经验" datatype="*" errormsg="请输入执业经验" sucmsg=" " value="{$data['l_age']?$data['l_age']:'1'}" style="width: 140px;"/>
                                            <p class="text-danger">*必填</p>
                                        </div>
                                    </div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">执业证号</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="l_code"  placeholder="执业证号" datatype="*" errormsg="请输入执业证号" sucmsg=" " value="{$data['l_code']?$data['l_code']:''}" style="width: 140px;"/>
                                            <p class="text-danger">*必填</p>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">所在地址</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" name="l_site" size="18" value="{$data['l_site']?$data['l_site']:''}" datatype="*"  placeholder="所在地址" errormsg="请输入所在地址"  class="form-control"   />
                                            <p class="text-danger">*必填</p>
                                        </div>
                                    </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">业务领域</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" name="l_field" size="18" value="{$data['l_field']?$data['l_field']:''}" datatype="*"  placeholder="业务领域" errormsg="请输入业务领域"  class="form-control"   />
                                            <p class="text-danger">*必填(多个领域请用,分隔)。示例：婚姻家庭,合同法务</p>
                                        </div>
                                    </div>

                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">律师描述</label>
                                        <div class="col-sm-6 vcheck-abs">
                                            <textarea class="form-control" name="l_describe"  placeholder="律师描述" datatype="*" errormsg="请输入律师描述" sucmsg=" " >{$data['l_describe']?$data['l_describe']:''}</textarea>
                                        </div>
                                        <p class="text-danger">*必填</p>
                                    </div>
                                    
		                                       
		                            <div class="hr-line-dashed"></div>
		                            <div class="form-group panic-buy">
		                                <label class="col-sm-2 control-label">是否发布</label>
		                                <div class="col-sm-4 vcheck-abs form-inline">
                                            {if condition="$data eq ''"}
                                            <label class="gray-label ">是&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" class="form-control" name="l_state" value="2"  /></label>
                                            <label class="gray-label ">否&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" class="form-control" name="l_state" value="1" checked/></label>
                                            {else /}
                                            <label class="gray-label ">是&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" class="form-control" name="l_state" value="2"  {if condition="$data['l_state'] eq 2"}checked{/if}/></label>
                                            <label class="gray-label ">否&nbsp;&nbsp;&nbsp;&nbsp;<input type="radio" class="form-control" name="l_state" value="1" {if condition="$data['l_state'] eq 1"}checked{/if}/></label>

                                            {/if}
		                                  </div>
		                            </div>

                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">排序</label>
                                        <div class="col-sm-4 vcheck-abs">
                                            <input type="text" class="form-control" name="l_sort"  placeholder="排序" datatype="*" errormsg="请输入排序" sucmsg=" " value="{$data['l_sort']?$data['l_sort']:'0'}" style="width: 140px;"/>
                                            <p class="text-danger">*必填</p>
                                        </div>

                                    </div>

                                    <div class="hr-line-dashed"></div>
                                    <div class="form-group">
                                        <label class="col-sm-2 control-label">律师头像</label>
                                        <div class="col-sm-10">
                                            <div class="upload-pic-item">
                                                <div class="upload-pic square-min" style="width:150px;">
                                                    <div class="pic-wrap">
                                                       {if condition="$data['l_img'] eq ''"}
                                                         <img src="__PUBLIC__/Images/img.jpg" alt="" />
                                                       {else/}
                                                         <img src="{$data['l_img']}" alt="" />
                                                       {/if}
                                                    </div>
                                                    <div class="upload-btn">上传</div>
                                                    <div class="delete-pic-btn">删除</div>
                                                    <input class="pic-url" type="hidden" name="l_img" value="{$data['l_img']?$data['l_img']:''}" size="600,600" />
                                                </div>
                                            </div>
                                           <p class="text-danger">*必填;图片尺寸600*600</p>
                                        </div>
                                    </div>

                                    <!-- 新闻内容 -->
                                    <div class="panel panel-default add-estimate">
                                        <div class="panel-heading add-estimate-name">律师简介</div>
                                        <div class="panel-body">

                                            <div class="hr-line-dashed"></div>
                                            <div class="form-group">
                                                <label class="col-sm-2 control-label" >内容</label>
                                                <div class="col-sm-8" >
                                                    <!-- 加载编辑器 -->
                                                    <script id="editor" name="l_details" type="text/plain">{$data['l_details']?$data['l_details']:''}</script>
                                                </div>
                                            </div>

                                        </div>
                                    </div>

                            <div class="form-group">
                                <div class="text-center">
                                    <input type="button"  class="btn btn-danger submit" value="确认提交"  />
                                    <input type="hidden" name="lawyer_id"  value="{$data['lawyer_id']?$data['lawyer_id']:''}"/>
                                    <a class="mg-left-10 btn btn-white" href="javascript:location.reload();" alt="重置">重置</a>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>

    </div>

</body>
</html>
{include file="include:js" /}